Skip to content

Conversation

@helen229
Copy link
Member

@helen229 helen229 commented Oct 7, 2025

Closes #12242

@helen229 helen229 requested a review from tjprescott as a code owner October 7, 2025 19:18
Copilot AI review requested due to automatic review settings October 7, 2025 19:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces package type classification functionality to the API review system. The main purpose is to enable categorization of packages as Data plane, Management plane, or Unknown types throughout the review workflow.

Key changes include:

  • Added PackageType enum and supporting infrastructure for package classification
  • Enhanced review creation and update workflows to handle package type assignment
  • Improved error handling and code organization in the review page component

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/dotnet/APIView/ClientSPA/src/app/_models/review.ts Added PackageType enum and optional packageType field to Review class
src/dotnet/APIView/ClientSPA/src/app/_components/review-page/review-page.component.ts Added updateReview method, improved error handling, and consolidated review update logic
src/dotnet/APIView/APIViewWeb/Managers/ReviewManager.cs Added packageType parameter to CreateReviewAsync and new UpdateReviewAsync method
src/dotnet/APIView/APIViewWeb/Managers/PullRequestManager.cs Enhanced pull request workflow to support package type classification
src/dotnet/APIView/APIViewWeb/Managers/Interfaces/IReviewManager.cs Updated interface signatures for package type support
src/dotnet/APIView/APIViewWeb/Managers/Interfaces/IPullRequestManager.cs Added packageType parameter to interface method
src/dotnet/APIView/APIViewWeb/LeanModels/ReviewListModels.cs Added PackageType property to ReviewListItemModel
src/dotnet/APIView/APIViewWeb/LeanControllers/ReviewsController.cs Added blank lines (formatting change)
src/dotnet/APIView/APIViewWeb/LeanControllers/PullRequestsController.cs Added packageType parameter to API endpoint
src/dotnet/APIView/APIViewWeb/Helpers/CommonUtilities.cs Defined PackageType enum with Data, Management, and Unknown values
src/dotnet/APIView/APIViewWeb/Controllers/AutoReviewController.cs Enhanced auto-review workflow with package type classification support

@helen229 helen229 changed the title update controller [APIView] Identify the package type Oct 7, 2025
…r.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments.

Copy link
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, but would like sign-off from @praveenkuttappan since he has more knowledge of the C# side of APIView than me.

Copy link
Member

@maririos maririos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add tests to make sure the package type is correctly populated in all types of APIViews creations?

Copy link
Member

@praveenkuttappan praveenkuttappan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me

Copy link
Member

@maririos maririos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you ensure that there are tests covering:

  • Passing a valid packageType
  • Passing an invalid packageType
  • Omitting packageType
  • Updating an existing review with and without PackageType set

@helen229 helen229 merged commit 8e710a2 into main Oct 17, 2025
7 checks passed
@helen229 helen229 deleted the gaoh/package-type branch October 17, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[APIView] Need helper method to distinguish between data and management plane

4 participants